package com.ym.medical.domain.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ym.common.enums.UserUserTypeEnum;
import com.ym.medical.enums.UserSexEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 微信用户对象 wx_user
 *
 * @author ym
 * @date 2020-08-17
 */
@ApiModel("微信用户-列表")
@Data
public class WxUserListPcVO implements Serializable {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty("主键")
	private Long id;

	@ApiModelProperty("用户主键")
	private Long userId;

	@ApiModelProperty("微信昵称")
	private String wxUserNc;

	@ApiModelProperty("微信头像")
	private String wxTxUrl;

	@ApiModelProperty("小程序openId")
	private String openidMini;

	@ApiModelProperty("公众号openid")
	private String openidPlat;

	@ApiModelProperty("是否授权用户信息")
	private String isAuthPhone;

	@ApiModelProperty("授权信息时间")
	private Date infoTime;

	@ApiModelProperty("授权手机时间")
	private Date phoneTime;

	@ApiModelProperty("性别")
	@JsonSerialize(converter = UserSexEnum.Covert.class)
	private String gender;

	@ApiModelProperty("语言")
	private String language;

	@ApiModelProperty("城市")
	private String city;

	@ApiModelProperty("省份")
	private String province;

	@ApiModelProperty("国家")
	private String country;

	@ApiModelProperty("unionId")
	private String unionid;

	@ApiModelProperty("用户同意协议状态")
	private String agreeProtoFlag;

	@ApiModelProperty("用户类型")
	@JsonSerialize(converter = UserUserTypeEnum.Covert.class)
	private String userType;

}
